Merge pull request #1377 from thiagotalma/clone-fix-scenario

Fix missing scenario clone

Andrew Cantino 9 年之前
父节点
当前提交
b156e525b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/models/agent.rb

+ 1 - 1
app/models/agent.rb

@@ -301,7 +301,7 @@ class Agent < ActiveRecord::Base
301 301
   class << self
302 302
     def build_clone(original)
303 303
       new(original.slice(:type, :options, :schedule, :controller_ids, :control_target_ids,
304
-                         :source_ids, :keep_events_for, :propagate_immediately)) { |clone|
304
+                         :source_ids, :keep_events_for, :propagate_immediately, :scenario_ids)) { |clone|
305 305
         # Give it a unique name
306 306
         2.upto(count) do |i|
307 307
           name = '%s (%d)' % [original.name, i]